let plugin = requirePlugin('routePlan');
const key = "FNRBZ-DZS3X-3GA46-ZDPVR-JYHJ7-QXBHF";
const referer = "REFERER";
let endPoint = JSON.stringify({  //终点
  'name': '吉野家(北京西站北口店)',
  'latitude': 39.89631551,
  'longitude': 116.323459711
});

Page({
    data: { 
      latitude: 36.682253,
      longitude: 117.120252,
      markers: [{
        id: 1,
        latitude: 36.682253,
        longitude: 117.120252,
        name: 'T.I.T 创意园'
      }]
    },
  onLoad: function () {
    wx.navigateTo({
      url: 'plugin://routePlan/index?key=' + key + '&referer=' + referer + '&endPoint=' + endPoint
  })
}
  
})